home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-08-19 | 2.3 KB | 68 lines | [TEXT/PEDT] |
- LINKED LIST EXAMPLE INSTRUCTIONS
-
- By: Russell L. Naber
- GENIE: R.NABER
- Distribution: Shareware please distribute in whole all related files
- including this instruction file. If you feel this example
- Program has helped you feel free to contribute what you
- think it is worth to you to the following:
-
- Russell L. Naber
- 6801 S. Robin Drive
- Gillette, WY. 82716
-
- --------------------------------------------
- This lightspeed pascal program shows how to load a database in a text file
- into a pascal data structure using linked list's.
-
- Upon opening the project enter the following equations into the observe
- window.
-
- TheNode^^.StrgData
- TheNode^^.LongIntData
-
- This will allow you to see how the fields in the node variable are changed.
- There are some stop signs inserted into the program to automatically stop
- the program before each node is changed. Just use command-G to advance it
- one loop.
-
- You can add more information to the database just by opening it in a word
- processor, (be sure to turn on the ability to see tabs and returns) and
- inserting the new records according to the following format:
-
- TAB STRINGDATA TAB LONGINTEGERDATA CR
-
- -> TESTSTRING -> 123456 CR {EXAMPLE}
-
- The program will automatically adjust to any length of databse, but it must
- be in the proper format as follows:
-
- 1.) first character on each line must be a tab.
- 2.) the string is next with a max length of 9 characters.
- 3.) another tab
- 4.) the longinteger next with a max length of 6 characters.
- 5.) end the line with a carriage return.
-
- Also the data file must be in the same folder as the project. (I've just
- have not inserted code to find it in any folder in HFS yet).
-
-
- This program shows how to open files within the MAC-OS from the toolbox and
- how to use non-relocatable pointers and relocatable handles and how to
- dispose of them to free memory. This is a must if you plan to use very large
- data base's. This one only contains 20 records, but in my working program
- it contains just over 5000 records and loads into the structure in just over
- 20 seconds on a mac+. Hence the portion checking memory size for debugging.
-
- You are free to learn from this source example and use it in your programs.
- I hope it will save you time in learning how linked list's work.
-
- Feel free to send any comments or questions to me on GENIE at the following
- E-Mail address:
-
- R.NABER
-
-
-
-
-